package com.baigu.order.dao.model;

import java.io.Serializable;
import java.util.Date;

public class BgOrder implements Serializable {
    /**
     * 订单ID
     *
     * @mbg.generated
     */
    private String id;

    /**
     * 会员ID
     *
     * @mbg.generated
     */
    private String memberId;

    /**
     * 实际收货人姓名
     *
     * @mbg.generated
     */
    private String consigneeName;

    /**
     * 实际收货人电话
     *
     * @mbg.generated
     */
    private String consigneePhone;

    /**
     * 区域ID（存储区县ID）
     *
     * @mbg.generated
     */
    private String consigneeAreaId;

    /**
     * 省市区名称（四川省-自贡市-自流井区）[冗余]
     *
     * @mbg.generated
     */
    private String consigneeArea;

    /**
     * 详细地址
     *
     * @mbg.generated
     */
    private String consigneeAddress;

    /**
     * 订单编号（TBY610041201711110000001）
     *
     * @mbg.generated
     */
    private String orderNo;

    /**
     * 订单状态（0:待付款，10:待发货，20:待收货，30:完成，80:退款，90：退款/退货）
     *
     * @mbg.generated
     */
    private Integer orderStatus;

    /**
     * 订单总金额（单位：分）
     *
     * @mbg.generated
     */
    private Integer orderTotalMoney;

    /**
     * 订单实际金额（单位：分）
     *
     * @mbg.generated
     */
    private Integer orderActualMoney;

    /**
     * 订单钱包金额（单位：分）
     *
     * @mbg.generated
     */
    private Integer orderWalletMoney;

    /**
     * 订单优惠金额（单位：分）
     *
     * @mbg.generated
     */
    private Integer orderDiscountMoney;

    /**
     * 订单邮费金额（单位：分）
     *
     * @mbg.generated
     */
    private Integer orderPostageMoney;

    /**
     * 是否包邮（0:否，1:是）
     *
     * @mbg.generated
     */
    private Integer isFreeShipping;

    /**
     * 物流类型（4通1达快递、顺丰、EMS、平邮）
     *
     * @mbg.generated
     */
    private String logisticsName;

    /**
     * 物流单号
     *
     * @mbg.generated
     */
    private String logisticsNo;

    /**
     * 支付方式（10:钱包，20:支付宝，25:支付宝合并支付，30:微信，35:微信合并支付，40:银联，45:银联合并支付）
     *
     * @mbg.generated
     */
    private Integer payMode;

    /**
     * 删除标记（0:未删除，1:已删除）
     *
     * @mbg.generated
     */
    private Integer delFlag;

    /**
     * 创建人(默认系统创建:system)
     *
     * @mbg.generated
     */
    private String createBy;

    /**
     * 创建日期
     *
     * @mbg.generated
     */
    private Date createDate;

    /**
     * 最后修改人(默认系统创建:system)
     *
     * @mbg.generated
     */
    private String updateBy;

    /**
     * 最后修改日期
     *
     * @mbg.generated
     */
    private Date updateDate;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public String getConsigneeName() {
        return consigneeName;
    }

    public void setConsigneeName(String consigneeName) {
        this.consigneeName = consigneeName;
    }

    public String getConsigneePhone() {
        return consigneePhone;
    }

    public void setConsigneePhone(String consigneePhone) {
        this.consigneePhone = consigneePhone;
    }

    public String getConsigneeAreaId() {
        return consigneeAreaId;
    }

    public void setConsigneeAreaId(String consigneeAreaId) {
        this.consigneeAreaId = consigneeAreaId;
    }

    public String getConsigneeArea() {
        return consigneeArea;
    }

    public void setConsigneeArea(String consigneeArea) {
        this.consigneeArea = consigneeArea;
    }

    public String getConsigneeAddress() {
        return consigneeAddress;
    }

    public void setConsigneeAddress(String consigneeAddress) {
        this.consigneeAddress = consigneeAddress;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Integer getOrderTotalMoney() {
        return orderTotalMoney;
    }

    public void setOrderTotalMoney(Integer orderTotalMoney) {
        this.orderTotalMoney = orderTotalMoney;
    }

    public Integer getOrderActualMoney() {
        return orderActualMoney;
    }

    public void setOrderActualMoney(Integer orderActualMoney) {
        this.orderActualMoney = orderActualMoney;
    }

    public Integer getOrderWalletMoney() {
        return orderWalletMoney;
    }

    public void setOrderWalletMoney(Integer orderWalletMoney) {
        this.orderWalletMoney = orderWalletMoney;
    }

    public Integer getOrderDiscountMoney() {
        return orderDiscountMoney;
    }

    public void setOrderDiscountMoney(Integer orderDiscountMoney) {
        this.orderDiscountMoney = orderDiscountMoney;
    }

    public Integer getOrderPostageMoney() {
        return orderPostageMoney;
    }

    public void setOrderPostageMoney(Integer orderPostageMoney) {
        this.orderPostageMoney = orderPostageMoney;
    }

    public Integer getIsFreeShipping() {
        return isFreeShipping;
    }

    public void setIsFreeShipping(Integer isFreeShipping) {
        this.isFreeShipping = isFreeShipping;
    }

    public String getLogisticsName() {
        return logisticsName;
    }

    public void setLogisticsName(String logisticsName) {
        this.logisticsName = logisticsName;
    }

    public String getLogisticsNo() {
        return logisticsNo;
    }

    public void setLogisticsNo(String logisticsNo) {
        this.logisticsNo = logisticsNo;
    }

    public Integer getPayMode() {
        return payMode;
    }

    public void setPayMode(Integer payMode) {
        this.payMode = payMode;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", memberId=").append(memberId);
        sb.append(", consigneeName=").append(consigneeName);
        sb.append(", consigneePhone=").append(consigneePhone);
        sb.append(", consigneeAreaId=").append(consigneeAreaId);
        sb.append(", consigneeArea=").append(consigneeArea);
        sb.append(", consigneeAddress=").append(consigneeAddress);
        sb.append(", orderNo=").append(orderNo);
        sb.append(", orderStatus=").append(orderStatus);
        sb.append(", orderTotalMoney=").append(orderTotalMoney);
        sb.append(", orderActualMoney=").append(orderActualMoney);
        sb.append(", orderWalletMoney=").append(orderWalletMoney);
        sb.append(", orderDiscountMoney=").append(orderDiscountMoney);
        sb.append(", orderPostageMoney=").append(orderPostageMoney);
        sb.append(", isFreeShipping=").append(isFreeShipping);
        sb.append(", logisticsName=").append(logisticsName);
        sb.append(", logisticsNo=").append(logisticsNo);
        sb.append(", payMode=").append(payMode);
        sb.append(", delFlag=").append(delFlag);
        sb.append(", createBy=").append(createBy);
        sb.append(", createDate=").append(createDate);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", updateDate=").append(updateDate);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BgOrder other = (BgOrder) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMemberId() == null ? other.getMemberId() == null : this.getMemberId().equals(other.getMemberId()))
            && (this.getConsigneeName() == null ? other.getConsigneeName() == null : this.getConsigneeName().equals(other.getConsigneeName()))
            && (this.getConsigneePhone() == null ? other.getConsigneePhone() == null : this.getConsigneePhone().equals(other.getConsigneePhone()))
            && (this.getConsigneeAreaId() == null ? other.getConsigneeAreaId() == null : this.getConsigneeAreaId().equals(other.getConsigneeAreaId()))
            && (this.getConsigneeArea() == null ? other.getConsigneeArea() == null : this.getConsigneeArea().equals(other.getConsigneeArea()))
            && (this.getConsigneeAddress() == null ? other.getConsigneeAddress() == null : this.getConsigneeAddress().equals(other.getConsigneeAddress()))
            && (this.getOrderNo() == null ? other.getOrderNo() == null : this.getOrderNo().equals(other.getOrderNo()))
            && (this.getOrderStatus() == null ? other.getOrderStatus() == null : this.getOrderStatus().equals(other.getOrderStatus()))
            && (this.getOrderTotalMoney() == null ? other.getOrderTotalMoney() == null : this.getOrderTotalMoney().equals(other.getOrderTotalMoney()))
            && (this.getOrderActualMoney() == null ? other.getOrderActualMoney() == null : this.getOrderActualMoney().equals(other.getOrderActualMoney()))
            && (this.getOrderWalletMoney() == null ? other.getOrderWalletMoney() == null : this.getOrderWalletMoney().equals(other.getOrderWalletMoney()))
            && (this.getOrderDiscountMoney() == null ? other.getOrderDiscountMoney() == null : this.getOrderDiscountMoney().equals(other.getOrderDiscountMoney()))
            && (this.getOrderPostageMoney() == null ? other.getOrderPostageMoney() == null : this.getOrderPostageMoney().equals(other.getOrderPostageMoney()))
            && (this.getIsFreeShipping() == null ? other.getIsFreeShipping() == null : this.getIsFreeShipping().equals(other.getIsFreeShipping()))
            && (this.getLogisticsName() == null ? other.getLogisticsName() == null : this.getLogisticsName().equals(other.getLogisticsName()))
            && (this.getLogisticsNo() == null ? other.getLogisticsNo() == null : this.getLogisticsNo().equals(other.getLogisticsNo()))
            && (this.getPayMode() == null ? other.getPayMode() == null : this.getPayMode().equals(other.getPayMode()))
            && (this.getDelFlag() == null ? other.getDelFlag() == null : this.getDelFlag().equals(other.getDelFlag()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateDate() == null ? other.getCreateDate() == null : this.getCreateDate().equals(other.getCreateDate()))
            && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
            && (this.getUpdateDate() == null ? other.getUpdateDate() == null : this.getUpdateDate().equals(other.getUpdateDate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMemberId() == null) ? 0 : getMemberId().hashCode());
        result = prime * result + ((getConsigneeName() == null) ? 0 : getConsigneeName().hashCode());
        result = prime * result + ((getConsigneePhone() == null) ? 0 : getConsigneePhone().hashCode());
        result = prime * result + ((getConsigneeAreaId() == null) ? 0 : getConsigneeAreaId().hashCode());
        result = prime * result + ((getConsigneeArea() == null) ? 0 : getConsigneeArea().hashCode());
        result = prime * result + ((getConsigneeAddress() == null) ? 0 : getConsigneeAddress().hashCode());
        result = prime * result + ((getOrderNo() == null) ? 0 : getOrderNo().hashCode());
        result = prime * result + ((getOrderStatus() == null) ? 0 : getOrderStatus().hashCode());
        result = prime * result + ((getOrderTotalMoney() == null) ? 0 : getOrderTotalMoney().hashCode());
        result = prime * result + ((getOrderActualMoney() == null) ? 0 : getOrderActualMoney().hashCode());
        result = prime * result + ((getOrderWalletMoney() == null) ? 0 : getOrderWalletMoney().hashCode());
        result = prime * result + ((getOrderDiscountMoney() == null) ? 0 : getOrderDiscountMoney().hashCode());
        result = prime * result + ((getOrderPostageMoney() == null) ? 0 : getOrderPostageMoney().hashCode());
        result = prime * result + ((getIsFreeShipping() == null) ? 0 : getIsFreeShipping().hashCode());
        result = prime * result + ((getLogisticsName() == null) ? 0 : getLogisticsName().hashCode());
        result = prime * result + ((getLogisticsNo() == null) ? 0 : getLogisticsNo().hashCode());
        result = prime * result + ((getPayMode() == null) ? 0 : getPayMode().hashCode());
        result = prime * result + ((getDelFlag() == null) ? 0 : getDelFlag().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        result = prime * result + ((getUpdateDate() == null) ? 0 : getUpdateDate().hashCode());
        return result;
    }
}